package com.woniu51.k15demo.mapper;

import com.woniu51.k15demo.entity.RolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RolePermission record);

    RolePermission selectByPrimaryKey(Long id);

    List<RolePermission> selectAll();

    int updateByPrimaryKey(RolePermission record);

    void deleteByRoleId(Long id);

    void batchInsert(@Param("roleId") Long roleId,@Param("permIdList")  List<Long> permIdList);


}